package com.lanou3g.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lanou3g.bean.Role;
import com.lanou3g.mapper.RoleMapper;
import com.lanou3g.service.RoleService;
@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleMapper roleMapper;
	@Override
	public List<Role> getAllRoles() {
		return roleMapper.getAllRoles();
	}
	@Override
	public Role getRoleById(Integer id) {
		return roleMapper.getRoleById(id);
	}

}
